home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1993 April: Penguin on DISC / ADC Developer CD (1993-04) (''Penguin On DISC'')_iso / Dev.CD Apr 93.iso / Utilities / MPW Interfaces 7.1 Beta / AIncludes / ToolEqu.a < prev    next >
Encoding:
Text File  |  1992-08-28  |  40.5 KB  |  1,121 lines  |  [TEXT/MPS ]

  1. ; Version: 3.28
  2. ; Created: Friday, October 20, 1989 at 10:02:20 PM
  3. ;
  4. ; File: ToolEqu.a
  5. ;
  6. ; Assembler Interface to the Macintosh Libraries
  7. ; Copyright Apple Computer, Inc. 1984-1991
  8. ; All Rights Reserved
  9.  
  10. ;*** Warning: This is an alpha version of the Interfaces for Cube-E. 
  11. ;***          Things may change.  Caveat Programmer.
  12.  
  13.  
  14.     IF &TYPE('__INCLUDINGTOOLEQU__') = 'UNDEFINED' THEN
  15. __INCLUDINGTOOLEQU__    SET    1
  16.  
  17.                   IF          (&TYPE('wholeTools') = 'UNDEFINED') THEN
  18. wholeTools        EQU         1
  19.                   ENDIF
  20.  
  21.  
  22. ;+ Resource Manager
  23.  
  24. ; Resource attributes
  25.  
  26. resSysRef         EQU         7                         ; reference to system/local reference
  27. resSysHeap        EQU         6                         ; In system/in application heap
  28. resPurgeable      EQU         5                         ; Purgeable/not purgeable
  29. resLocked         EQU         4                         ; Locked/not locked
  30. resProtected      EQU         3                         ; Protected/not protected
  31. resPreload        EQU         2                         ; Read in at OpenResource?
  32. resChanged        EQU         1                         ; Existing resource changed since last update
  33. rcbMask           EQU         $FD                       ; Must preserve ResChanged over _ResAttrs
  34.  
  35. ; Map attributes
  36.  
  37. mapReadOnly       EQU         7                         ; is this file read-only?
  38. mapCompact        EQU         6                         ; Is a compact necessary?
  39. mapChanged        EQU         5                         ; Is it necessary to write map?
  40.  
  41. ; Resource Manager Globals
  42.  
  43. TopMapHndl        EQU         $A50                      ; topmost map in list [handle]
  44. SysMapHndl        EQU         $A54                      ; system map [handle]
  45. SysMap            EQU         $A58                      ; reference number of system map [word]
  46. CurMap            EQU         $A5A                      ; reference number of current map [word]
  47. ResReadOnly       EQU         $A5C                      ; Read only flag [word]
  48. ResLoad           EQU         $A5E                      ; Auto-load feature [word]
  49. ResErr            EQU         $A60                      ; Resource error code [word]
  50. ResErrProc        EQU         $AF2                      ; Resource error procedure [pointer]
  51. SysResName        EQU         $AD8                      ; Name of system resource file [STRING[19]]
  52.  
  53. ;new Resource Manager stuff
  54.  
  55. RomMapInsert      EQU         $B9E                      ; (byte) determines if we should link in map
  56. TmpResLoad        EQU         $B9F                      ; second byte is temporary ResLoad value.
  57.  
  58. ; the following word values are to be placed into the
  59. ; word located at RomMapInsert
  60.  
  61. MapTrue           EQU         $FFFF                     ; link in ROM map with resload true 
  62. MapFalse          EQU         $FF00                     ; link in ROM map with resload false
  63.  
  64. ;+ Font Manager
  65.  
  66.  
  67. ; Standard font ID's
  68.  
  69. sysFont           EQU         0                         ; system font ID
  70. applFont          EQU         1                         ; application font ID
  71. newYork           EQU         2                         ; standard release fonts
  72. geneva            EQU         3
  73. monaco            EQU         4
  74. venice            EQU         5
  75. london            EQU         6
  76. athens            EQU         7
  77. sanFran           EQU         8
  78. toronto           EQU         9
  79. cairo             EQU         11
  80. losAngeles        EQU         12
  81. times             EQU         20
  82. helvetica         EQU         21
  83. courier           EQU         22
  84. symbol            EQU         23
  85. mobile            EQU         24
  86.  
  87. ; Font Manager Globals
  88.  
  89. ApFontID          EQU         $984                      ; resource ID of application font [word]
  90. FMDefaultSize     EQU         $987                      ; default size [byte]
  91. CurFMInput        EQU         $988                      ; quickdraw FMInput Record [pointer]
  92. FMgrOutRec        EQU         $998                      ; quickdraw FontOutput Record [pointer]
  93. FScaleDisable     EQU         $A63                      ; disable font scaling? [byte]
  94.  
  95. ;new FONT manager stuff
  96.  
  97. WidthListHand     EQU         $8E4                      ; list of extra width tables, or nil.
  98. WidthPtr          EQU         $B10                      ; (long) Font Mgr global
  99. WidthTabHandle    EQU         $B2A                      ; Font width table handle for measure
  100. LastSPExtra       EQU         $B4C                      ; (long) most recent value of space extra
  101. SysFontFam        EQU         $BA6                      ; (word) System font family ID or zero
  102. SysFontSize       EQU         $BA8                      ; (word) System font size (or zero for 12 pt)
  103. FDevDisable       EQU         $BB3                      ; (byte) $FF to disable device-defined style extra
  104. LastFOND          EQU         $BC2                      ; (long) handle of last font def record
  105. FONDID            EQU         $BC6                      ; (word) ID of last font def record
  106. FractEnable       EQU         $BF4                      ; (byte) flag for fractional font widths
  107. UsedFWidths       EQU         $BF5                      ; (byte) flag saying if we used fract widths
  108. FScaleHFact       EQU         $BF6                      ; (long) horz. font scale factor
  109. FScaleVFact       EQU         $BFA                      ; (long) vertical font scale factor 
  110.  
  111. ;+ Window Manager
  112.  
  113. ; system windows have negative kinds
  114. dialogKind        EQU         2                         ; dialog windows
  115. userKind          EQU         8                         ; this and above numbers are for user
  116.  
  117. ; Values returned by window definition function's hit routine
  118.  
  119. wNoHit            EQU         0                         ; not in window at all
  120. wInContent        EQU         1                         ; in content area
  121. wInDrag           EQU         2                         ; in drag area
  122. wInGrow           EQU         3                         ; in grow area
  123. wInGoAway         EQU         4                         ; in go away area
  124. wInZoomIn         EQU         5                         ; in zoom in
  125. wInZoomOut        EQU         6                         ; in zoom out
  126.  
  127. ; FindWindow Return Codes
  128.  
  129. inDesk            EQU         0                         ; not in any window
  130. inMenuBar         EQU         1                         ; in the menu bar
  131. inSysWindow       EQU         2                         ; in a system window
  132. inContent         EQU         3                         ; in content area of user window
  133. inDrag            EQU         4                         ; in drag area of user window
  134. inGrow            EQU         5                         ; in grow area of user window
  135. inGoAway          EQU         6                         ; in go away area of user window
  136. inZoomIn          EQU         7                         ; in zoom in part code
  137. inZoomOut         EQU         8                         ; in zoom out part code
  138.  
  139. ; Resource ID's for windows
  140.  
  141. deskPatID         EQU         16                        ; desk pattern PAT ID
  142. documentProc      EQU         0                         ; standard document WDEF ID
  143. dBoxProc          EQU         1                         ; dialog box (document without titleBar) WDEF ID
  144. plainDBox         EQU         2                         ; no border WDEF ID
  145. altDBoxProc       EQU         3                         ; no shadow or title WDEF ID
  146. noGrowDocProc     EQU         4                         ; no grow area WDEF ID
  147. movableDBoxProc    EQU            5                        ; movable dialog box WDEF ID
  148. zoomDocProc       EQU         8                         ; with zoom box WDEF ID
  149. zoomNoGrow        EQU         12                        ; zoom with no grow box WDEF ID
  150. rDocProc          EQU         16                        ; document with rounded corners WDEF ID
  151.  
  152. ; Window Data Structure Definition
  153.  
  154. windowPort        EQU         0                         ; grafPort [108 bytes]
  155. windowKind        EQU         $6C                       ; type of window [word]
  156. wVisible          EQU         $6E                       ; visible flag [byte]
  157. wHilited          EQU         $6F                       ; select (hilite) flag [byte]
  158. wGoAway           EQU         $70                       ; has go away button [byte]
  159. wZoom             EQU         $71                       ; has zoom box [byte]
  160. structRgn         EQU         $72                       ; structure region of window [Handle]
  161. contRgn           EQU         $76                       ; content region of window [Handle]
  162. updateRgn         EQU         $7A                       ; update region of window [Handle]
  163. windowDef         EQU         $7E                       ; window definition procedure [Handle]
  164. wDataHandle       EQU         $82                       ; window proc-defined data [Handle]
  165. wTitleHandle      EQU         $86                       ; title string [Handle]
  166. wTitleWidth       EQU         $8A                       ; width in pixels of title string [word]
  167. wControlList      EQU         $8C                       ; control list of this window [handle]
  168. nextWindow        EQU         $90                       ; next window in z-ordered list [pointer]
  169. windowPic         EQU         $94                       ; picture handle for updates [handle]
  170. wRefCon           EQU         $98                       ; application use [long]
  171. windowSize        EQU         $9C                       ; size of window data structure
  172. WStateData        RECORD      0
  173. userState         DS.L        2                         ;Rect
  174. stdState          DS.L        2                         ;Rect
  175.                   ENDR
  176.  
  177.  
  178.  
  179. ; Window Manager Globals
  180.  
  181. WindowList        EQU         $9D6                      ; Z-ordered linked list of windows [pointer]
  182. PaintWhite        EQU         $9DC                      ; erase newly drawn windows? [word]
  183. WMgrPort          EQU         $9DE                      ; window manager's grafport [pointer]
  184. GrayRgn           EQU         $9EE                      ; rounded gray desk region [handle]
  185. CurActivate       EQU         $A64                      ; window slated for activate event [pointer]
  186. CurDeactive       EQU         $A68                      ; window slated for deactivate event [pointer]
  187. DragHook          EQU         $9F6                      ; user hook during dragging [pointer]
  188. DeskPattern       EQU         $A3C                      ; desk pattern [8 bytes]
  189. DeskHook          EQU         $A6C                      ; hook for painting the desk [pointer]
  190. GhostWindow       EQU         $A84                      ; window hidden from FrontWindow [pointer]
  191.  
  192.  
  193.  
  194. ;+ Menu Manager
  195.  
  196. ; "ASCII" marks for menu characters
  197.  
  198. noMark            EQU         0
  199. commandMark       EQU         $11                       ; command fan (cloverleaf)
  200. checkMark         EQU         $12                       ; check mark for menus
  201. diamondMark       EQU         $13                       ; diamond mark for menus
  202. appleMark         EQU         $14                       ; desk ornament menu title
  203.  
  204. ; MenuList Data Structure Definition -- one per menuBar
  205.  
  206. ; 6 Byte header
  207. lastMenu          EQU         0                         ; number of bytes in this menuList [word]
  208. lastRight         EQU         2                         ; h coordinate of 1st free point in menuBar [word]
  209. ; one of the following per menu
  210. menuoH            EQU         0                         ; menu handle [handle]
  211. menuLeft          EQU         4                         ; coordinate of left edge of menu [word]
  212.  
  213. ; MenuInfo Data Structure -- one per menu
  214.  
  215. menuID            EQU         0                         ; unique ID for each menuBar [word]
  216. menuWidth         EQU         2                         ; menu width [word]
  217. menuHeight        EQU         4                         ; menu height [word]
  218. menuDefHandle     EQU         6                         ; menu definition proc [handle]
  219. menuEnable        EQU         $A                        ; enable flags, one bit/item [long]
  220. menuData          EQU         $E                        ; menu item string [STRING]
  221. menuBlkSize       EQU         $E                        ; size of a menu block plus dataString
  222.  
  223. ; MenuString Data Structure -- one per menu item
  224.  
  225. itemIcon          EQU         0                         ; icon byte
  226. itemCmd           EQU         1                         ; apple (command key) byte
  227. itemMark          EQU         2                         ; checkmark character byte
  228. itemStyle         EQU         3                         ; style byte
  229.  
  230. ; Menu Manager Globals
  231.  
  232. MenuList          EQU         $A1C                      ; current menuBar list structure [handle]
  233. MenuFlash         EQU         $A24                      ; flash feedback count [word]
  234. MenuHook          EQU         $A30                      ; user hook during menuSelect [pointer]
  235. MBarEnable        EQU         $A20                      ; menuBar enable for desk accessories[word]
  236. MBarHook          EQU         $A2C                      ; user hook during menuSelect [pointer]
  237.  
  238. ;new Menu Manager stuff
  239.  
  240. MBarHeight        EQU         $BAA                      ; (word) height of menu bar (usually 20)
  241.  
  242. ;+ Control Manager
  243.  
  244. ; Part Codes
  245.  
  246. inButton          EQU         10                        ; in a push button
  247. inCheckBox        EQU         11                        ; in a checkBox button
  248. inUpButton        EQU         20                        ; in up button area of a dial
  249. inDownButton      EQU         21                        ; in down button area of a dial
  250. inPageUp          EQU         22                        ; in page up (gray) area of a dial
  251. inPageDown        EQU         23                        ; in page down (gray) area of a dial
  252. inThumb           EQU         129                       ; in thumb area of a dial
  253.  
  254. ; Constants for axis parameter of DragGrayRgn and DragControl
  255.  
  256. noConstraint      EQU         0                         ; free form dragging
  257. hAxisOnly         EQU         1                         ; horizontally only
  258. vAxisOnly         EQU         2                         ; vertically only
  259.  
  260. ; Resource ID's for controls
  261.  
  262. pushButProc       EQU         0                         ; rounded-corner pushButtons CDEF ID
  263. checkBoxProc      EQU         1                         ; check-box type buttons CDEF ID
  264. radioButProc      EQU         2                         ; radio buttons CDEF ID
  265. scrollBarProc     EQU         16                        ; scrollBar CDEF ID
  266. useWFont          EQU         8                         ; add this to get window font CDEF ID
  267. sBarPatID         EQU         17                        ; scrollBar pattern ID
  268.  
  269.  
  270. ; Popup Control Constants 
  271. popupMenuCDEFproc        EQU    1008                    ; popup menu CDEF ID
  272.  
  273. ; Popup Variation Codes 
  274. popupFixedWidth            EQU    $0001                    ; size will not vary with menu items
  275. popupReserved            EQU    $0002                    ; was popupUseCQD
  276. popupUseAddResMenu        EQU    $0004                    ; menu = AddResMenu(CNTL's refCon)
  277. popupUseWFont            EQU    $0008                    ; use this for window font/size/face
  278.  
  279. ; Popup Title characteristics
  280. popupTitleBold            EQU    $00000100                ; styles for the popup title
  281. popupTitleItalic        EQU    $00000200
  282. popupTitleUnderline        EQU    $00000400
  283. popupTitleOutline        EQU    $00000800
  284. popupTitleShadow        EQU    $00001000
  285. popupTitleCondense        EQU    $00002000
  286. popupTitleExtend        EQU    $00004000
  287. popupTitleNoStyle        EQU    $00008000
  288.  
  289. popupTitleLeftJust        EQU    $00000000                ; justification for the title
  290. popupTitleCenterJust    EQU    $00000001
  291. popupTitleRightJust        EQU    $000000FF
  292.  
  293.  
  294. ; Control Template
  295.  
  296. nextControl       EQU         $0                        ; next control in the list [handle]
  297. contrlOwner       EQU         $4                        ; owning window [pointer]
  298. contrlRect        EQU         $8                        ; bounding rectangle [8 bytes]
  299. contrlVis         EQU         $10                       ; visible state [byte]
  300. contrlHilite      EQU         $11                       ; hilite state [byte]
  301. contrlValue       EQU         $12                       ; current value of control [word]
  302. contrlMin         EQU         $14                       ; minimum value of control [word]
  303. contrlMax         EQU         $16                       ; maximum value of control [word]
  304. contrlDefHandle   EQU         $18                       ; control definition procedure [handle]
  305. contrlData        EQU         $1C                       ; data for definition proc [handle]
  306. contrlAction      EQU         $20                       ; local actionProc [pointer]
  307. contrlRFcon       EQU         $24                       ; refcon defined by application [long]
  308. contrlTitle       EQU         $28                       ; title string [STRING]
  309. contrlSize        EQU         $28                       ; size of control data structure less title
  310.  
  311. ; Control Manager Globals
  312.  
  313. DragPattern       EQU         $A34                      ; DragTheRgn pattern [8 bytes]
  314. DragFlag          EQU         $A44                      ; implicit parameter to DragControl [word]
  315. CurDragAction     EQU         $A46                      ; implicit actionProc for dragControl [pointer]
  316.  
  317.  
  318. ;+ Text Edit
  319.  
  320.  
  321. ; Justification styles
  322.  
  323. teJustLeft        EQU         0                         ; left justified text
  324. teJustRight       EQU         -1                        ; right justified text
  325. teJustCenter      EQU         1                         ; center justified text
  326. teForceLeft       EQU         -2                        ; for Arabic fonts, force left justification
  327.  
  328. ; new names for the Justification styles
  329. teFlushDefault    EQU            0                        ; flush according to the line direction
  330. teCenter        EQU            1                        ; center justify
  331. teFlushRight    EQU            -1                        ; flush right for all scripts
  332. teFlushLeft        EQU            -2                        ; flush left for all scripts
  333.  
  334. ; Text Edit Record
  335.  
  336. teDestRect        EQU         $0                        ; destination rectangle [8 bytes]
  337. teViewRect        EQU         $8                        ; view rectangle rectangle [8 bytes]
  338. teSelRect         EQU         $10                       ; select rectangle [8 bytes]
  339. teLineHite        EQU         $18                       ; lineheight [word]
  340. teAscent          EQU         $1A                       ; first baseline offset [word]
  341. teSelPoint        EQU         $1C                       ; selection point [long]
  342. teSelStart        EQU         $20                       ; selection start [word]
  343. teSelEnd          EQU         $22                       ; selection end [word]
  344. teActive          EQU         $24                       ; active [byte]
  345. teWordBreak       EQU         $26                       ; word break routine [pointer]
  346. teClikProc        EQU         $2A                       ; click loop routine [pointer]
  347. teClikTime        EQU         $2E                       ; time of last click [long]
  348. teClikLoc         EQU         $32                       ; location of double click [long]
  349. teCarTime         EQU         $34                       ; time for next caret toggle [long]
  350. teCarOn           EQU         $38                       ; is caret on? [byte]
  351. teCarAct          EQU         $39                       ; is caret active? [byte]
  352. teJust            EQU         $3A                       ; fill style [word]
  353. teLength          EQU         $3C                       ; length of text below [word]
  354. teTextH           EQU         $3E                       ; text [handle]
  355. teRecBack         EQU         $42                       ; unused [word]
  356. teRecLine         EQU         $44                       ; unused [word]
  357. teLftClick        EQU         $46                       ; click was to left? [byte]
  358. teLftCaret        EQU         $47                       ; caret was to left? [byte]
  359. teCROnly          EQU         $48                       ; <CR> only for line breaks? [byte]
  360. teFontStuff       EQU         $4A                       ; space for font specifier [8 bytes]
  361. teFont            EQU         $4A                       ; text font [word]
  362. teFace            EQU         $4C                       ; text face [word]
  363. teMode            EQU         $4E                       ; text mode [word]
  364. teSize            EQU         $50                       ; text size [word]
  365. teGrafPort        EQU         $52                       ; grafport for editting [pointer]
  366. teHiHook          EQU         $56                       ; hook for hilite routine [pointer]
  367. teCarHook         EQU         $5A                       ; hook for hilite routine [pointer]
  368. teNLines          EQU         $5E                       ; number of lines [word]
  369. teLines           EQU         $60                       ; line starts [words...]
  370. teRecSize         EQU         $68                       ; base size of a record w/o lines
  371.  
  372. ; Text Edit Globals
  373.  
  374. TEDoText          EQU         $A70                      ; textEdit doText proc hook [pointer]
  375. TERecal           EQU         $A74                      ; textEdit recalText proc hook [pointer]
  376. TEScrpLength      EQU         $AB0                      ; textEdit Scrap Length [word]
  377. TEScrpHandle      EQU         $AB4                      ; textEdit Scrap [handle]
  378. TEWdBreak         EQU         $AF6                      ; default word break routine [pointer]
  379. TEFindWord        EQU            $7F8                    ; low-memory hook for TextEdit's FindWord routine
  380.  
  381. ;new TE stuff
  382.  
  383. WordRedraw        EQU         $BA5                      ; (byte) - used by TextEdit RecalDraw
  384. TESysJust         EQU         $BAC                      ; (word) system justification (intl. textEdit)
  385. TEFlags           EQU         teRecBack                 ; turn whole byte into bit flags
  386. teFAutoPos        EQU         6                         ; set this bit for auto position/scroll
  387.  
  388. ;+ Dialog Manager
  389.  
  390. ; Item codes in item list
  391.  
  392. userItem          EQU         0                         ; application-defined (dialog only)
  393. ctrlItem          EQU         4                         ; must be added to following four items
  394. btnCtrl           EQU         0                         ; standard button
  395. chkCtrl           EQU         1                         ; standard check box
  396. radCtrl           EQU         2                         ; standard radio button
  397. resCtrl           EQU         3                         ; control defined in resource file
  398. statText          EQU         8                         ; static text
  399. editText          EQU         16                        ; editable text (dialog only)
  400. iconItem          EQU         32                        ; icon
  401. picItem           EQU         64                        ; quickdraw picture
  402. itemDisable       EQU         128                       ; add to any of above to disable
  403.  
  404.  
  405. ; Generic buttons
  406.  
  407. okButton          EQU         1                         ; OK button
  408. cancelButton      EQU         2                         ; Cancel button
  409.  
  410. ; Alert/Dialog Resource ID's
  411.  
  412. stopIcon          EQU         0                         ; stop icon ID
  413. noteIcon          EQU         1                         ; note icon ID
  414. cautionIcon       EQU         2                         ; caution icon ID
  415.  
  416. ; Dialog Template
  417.  
  418. dBounds           EQU         $0                        ; dialog bounds rectangle
  419. dWindProc         EQU         $8                        ; window proc ID
  420. dVisible          EQU         $A                        ; visible flag
  421. dGoAway           EQU         $C                        ; go away flag
  422. dRefCon           EQU         $E                        ; reference constant
  423. dItems            EQU         $12                       ; item list ID and handle
  424. dTitle            EQU         $14                       ; dialog window title
  425.  
  426. ; Alert Template
  427.  
  428. aBounds           EQU         $0                        ; alert box height and width
  429. aItems            EQU         $8                        ; item list ID
  430. aStages           EQU         $A                        ; stages word
  431.  
  432. ; Dialog/Alert Window Record
  433.  
  434. dWindow           EQU         $0                        ; window record
  435. items             EQU         $9C                       ; Item list [handle]
  436. teHandle          EQU         $A0                       ; textEdit object [handle]
  437. editField         EQU         $A4                       ; current field being edited [word]
  438. editOpen          EQU         $A6                       ; is editting open? [word]
  439. aDefItem          EQU         $A8                       ; default item for alerts [word]
  440. dWindLen          EQU         $AA                       ; dialog record length
  441.  
  442. ; In each item
  443.  
  444. itmHndl           EQU         0                         ; handle to the item
  445. itmRect           EQU         $4                        ; bounding rect of item
  446. itmType           EQU         $C                        ; item type
  447. itmData           EQU         $D                        ; item string, must be even length
  448.  
  449. ; Dialog Manager Globals
  450.  
  451. ANumber           EQU         $A98                      ; active alert ID [word]
  452. ACount            EQU         $A9A                      ; # times this alert called [word]
  453. DABeeper          EQU         $A9C                      ; beep routine [pointer]
  454. DAStrings         EQU         $AA0                      ; paramText substutution strings [4 handles]
  455. DlgFont           EQU         $AFA                      ; default dialog font ID [word]
  456.  
  457.  
  458. ;+ Package Globals
  459.  
  460.  
  461. AppPacks          EQU         $AB8                      ; packages' code [8 handles]
  462.  
  463.  
  464. ;+ Finder related Globals
  465.  
  466.  
  467. FinderName        EQU         $2E0                      ; "Finder" name [STRING[15]]
  468. AppParmHandle     EQU         $AEC                      ; handle to hold application parameters
  469.  
  470.  
  471. ;+ Miscellaneous Globals
  472.  
  473.  
  474. ApplScratch       EQU         $A78                      ; application scratch area [12 Bytes]
  475. ToolScratch       EQU         $9CE                      ; scratch area [8 bytes]
  476. TempRect          EQU         $9FA                      ; scratch rectangle [8 bytes]
  477.  
  478. ; System Patterns
  479.  
  480. sysPatListID      EQU         0                         ; ID of PAT# which contains 38 patterns
  481.  
  482.                   IF          wholeTools THEN
  483.  
  484. ; Resource Manager
  485.  
  486. mCCMask           EQU         $60                       ; mapCompact + mapChanged
  487. mChMask           EQU         $20                       ; mapChanged
  488. mCoMask           EQU         $40                       ; mapCompact
  489.  
  490. ; Font Manager
  491.  
  492. ; Font header values
  493.  
  494. propFont          EQU         $9000                     ; proportional font type
  495. prpFntH           EQU         $9001                     ; with height table
  496. prpFntW           EQU         $9002                     ; with width table
  497. prpFntHW          EQU         $9003                     ; with height & width table
  498. fixedFont         EQU         $B000                     ; fixed-pitch font type
  499. fxdFntH           EQU         $B001                     ; with height table
  500. fxdFntW           EQU         $B002                     ; with width table
  501. fxdFntHW          EQU         $B003                     ; with height & width table
  502. fontWid           EQU         $ACB0                     ; width-only font type
  503.  
  504. ; control/status codes for linkage w/font manager
  505.  
  506. fMgrCtl1          EQU         8                         ; printer drivers
  507.  
  508. ; Font Header Data Record
  509.  
  510. fFontType         EQU         0                         ; font type [word]
  511. fFirstChar        EQU         2                         ; ASCII code of first char [word]
  512. fLastChar         EQU         4                         ; ASCII code of last char [word]
  513. fWidMax           EQU         6                         ; maximum width of any char in pixels [word]
  514. fKernMax          EQU         8                         ; Negative of maximum character kern [word]
  515. fNDescent         EQU         10                        ; negative of descent [word]
  516. fFRectWidth       EQU         12                        ; width of font rectangle [word]
  517. fFRectHeight      EQU         14                        ; height of font rectangle [word]
  518. fOWTLoc           EQU         16                        ; offset to offset/width table [word]
  519. fAscent           EQU         18                        ; ascent above baseline in pixels [word]
  520. fDescent          EQU         20                        ; descent below baseline in pixels [word]
  521. fLeading          EQU         22                        ; space between lines in pixels [word]
  522. fRowWords         EQU         24                        ; row width of bit image / 2 [word]
  523.  
  524. ; Font Manager Input Record (CurFMInput)
  525.  
  526. fmInFamily        EQU         0                         ; family [word]
  527. fmInSize          EQU         2                         ; size [word]
  528. fmInFace          EQU         4                         ; face [word]
  529. fmInNeedBits      EQU         5                         ; needBits [byte]
  530. fmInDevice        EQU         6                         ; device number [byte]
  531. fmInNumer         EQU         8                         ; numerator of scale [fixed]
  532. fmInDenom         EQU         12                        ; denominator of scale [fixed]
  533.  
  534.  
  535. ; Font Manager Output record (FMgrOutRec)
  536.  
  537. fmOutError        EQU         0                         ; error code [word]
  538. fmOutFontH        EQU         2                         ; the actual font [handle]
  539. fmOutBold         EQU         6                         ; bolding factor [byte]
  540. fmOutItalic       EQU         7                         ; italic factor [byte]
  541. fmOutULOffset     EQU         8                         ; underline offset [byte]
  542. fmOutULShadow     EQU         9                         ; underline halo [byte]
  543. fmOutULThick      EQU         10                        ; underline thickness [byte]
  544. fmOutShadow       EQU         11                        ; shadow factor [byte]
  545. fmOutExtra        EQU         12                        ; extra horizontal width [byte]
  546. fmOutAscent       EQU         13                        ; height above baseline [byte]
  547. fmOutDescent      EQU         14                        ; height below baseline [byte]
  548. fmOutWidMax       EQU         15                        ; maximum width of character [byte]
  549. fmOutLeading      EQU         16                        ; space between lines [byte]
  550. fmOutNumer        EQU         18                        ; point for numerators of scale factor [long]
  551. fmOutDenom        EQU         22                        ; point for denominators of scale factor [long]
  552.  
  553.  
  554. ;WidthTable data structure
  555.  
  556. widTabData        EQU         0                         ;ARRAY[1..256] OF LONGINT character widths
  557. widTabFont        EQU         1024                      ;Handle font record used to build table
  558. widthSExtra       EQU         1028                      ;LONGINT space extra used for table
  559. widthStyle        EQU         1032                      ;LONGINT extra due to style
  560. widthFID          EQU         1036                      ;INTEGER font family ID
  561. widthFSize        EQU         1038                      ;INTEGER font size request
  562. widthFace         EQU         1040                      ;INTEGER style (face) request
  563. widthDevice       EQU         1042                      ;INTEGER device requested
  564. widthVInScale     EQU         1044                      ;FIXED scale factors requested
  565. widthHInScale     EQU         1048                      ;FIXED scale factors requested
  566. widthAFID         EQU         1052                      ;INTEGER actual font family ID for table
  567. widthFHand        EQU         1054                      ;Handle family record used to build up table
  568. widthUsedFam      EQU         1058                      ;BOOLEAN used fixed point family widths
  569. widthAFace        EQU         1059                      ;BYTE actual face produced
  570. widthVOutput      EQU         1060                      ;INTEGER vertical scale output value
  571. widthHOutput      EQU         1062                      ;INTEGER horizontal scale output value
  572. widthVFactor      EQU         1064                      ;INTEGER vertical scale output value
  573. widthHFactor      EQU         1066                      ;INTEGER horizontal scale output value
  574. widthASize        EQU         1068                      ;INTEGER actual size of actual font used
  575. ;widTabSize        EQU         1070                      ;INTEGER total size of table
  576.  
  577. ; Font Family Definition
  578.  
  579. ffFlags           EQU         0                         ; flags for family (word)
  580. ffFamID           EQU         2                         ; family ID number (word)
  581. ffFirst           EQU         4                         ; ASCII code of first character (word)
  582. ffLast            EQU         6                         ; ASCII code of last character (word)
  583. ffAscent          EQU         8                         ; maximum ascent expressed for 1 pt (word)
  584. ffDescent         EQU         10                        ; maximum descent expressed for 1 pt (word)
  585. ffLeading         EQU         12                        ; maximum leading expressed for 1 pt (word)
  586. ffWidMax          EQU         14                        ; maximum widMax expressed for 1 pt (word)
  587. ffWTabOff         EQU         16                        ; offset to width table (long)
  588. ffKernOff         EQU         20                        ; offset to kerning table (long)
  589. ffStylOff         EQU         24                        ; offset to style mapping table (long)
  590. ffStyleOff         EQU         24                        ; offset to style mapping table (long)
  591. ffProperty        EQU         28                        ; style property info (12 words)
  592. ffIntl            EQU         46                        ; reserved for international use (2 words)
  593. ffVersion         EQU         50                        ; FOND version number
  594.  
  595. ; Font Characterization Table
  596.  
  597. dpiVert           EQU         0                         ; vertical dots per inch [word]
  598. dpiHoriz          EQU         2                         ; horizontal dots per inch [word]
  599. boldChr           EQU         4                         ; bold characteristics [3 bytes]
  600. italChr           EQU         7                         ; italic characteristics [3 bytes]
  601. ; unused [3 bytes]
  602. outlineChr        EQU         13                        ; outline characteristics [3 bytes]
  603. shadowChr         EQU         16                        ; shadow characteristics [3 bytes]
  604. condChr           EQU         19                        ; condensed characteristics [3 bytes]
  605. extendChr         EQU         22                        ; extended characteristics [3 bytes]
  606. underChr          EQU         25                        ; underline characteristics [3 bytes]
  607.  
  608. ; Globals
  609.  
  610. CurFMFamily       EQU         $988                      ; current font family
  611. CurFMSize         EQU         $98A                      ; current font size
  612. CurFMFace         EQU         $98C                      ; current font face
  613. CurFMNeedBits     EQU         $98D                      ; boolean specifying whether it needs strike
  614. CurFMDevice       EQU         $98E                      ; current font device
  615. CurFMNumer        EQU         $990                      ; current numerator of scale factor
  616. CurFMDenom        EQU         $994                      ; current denominator of scale factor
  617. FOutRec           EQU         $998                      ; Font Manager output record
  618. FMDotsPerInch     EQU         $9B2                      ; h,v dotsPerInch of current device
  619. FMStyleTab        EQU         $9B6                      ; style heuristic table supplied by device
  620. RomFont0          EQU         $980                      ; system font [handle]
  621. GotStrike         EQU         $986                      ; Do we have the strike? [byte]
  622.  
  623.  
  624. ; Window Manager
  625.  
  626. ; Window Definition Procedure Messages
  627.  
  628. wDrawMsg          EQU         0                         ; draw yourself
  629. wHitMsg           EQU         1                         ; hit test
  630. wCalcRgnMsg       EQU         2                         ; recalculate your regions
  631. wInitMsg          EQU         3                         ; initialize yourself
  632. wDisposeMsg       EQU         4                         ; dispose any private data
  633. wGrowMsg          EQU         5                         ; drag out grow outline
  634. wGIconMsg         EQU         6                         ; draw the grow icon
  635. OldStructure      EQU         $9E6                      ; saved structure region [handle]
  636. OldContent        EQU         $9EA                      ; saved content region [handle]
  637. SaveVisRgn        EQU         $9F2                      ; temporarily saved visRegion [handle]
  638. CurDeKind         EQU         $A22                      ; window kind of deactivated window [word]
  639. SaveUpdate        EQU         $9DA                      ; Enable update accumulation? [word]
  640.  
  641. ; Menu Manager
  642.  
  643. ; Menu Definition Procedure Messages
  644.  
  645. mDrawMsg          EQU         0                         ; draw yourself
  646. mChooseMsg        EQU         1                         ; select an item
  647. mSizeMsg          EQU         2                         ; calculate your size
  648.  
  649. ; Menu Resource IDs
  650.  
  651. textMenuProc      EQU         0                         ; standard text menu MDEF ID
  652. TheMenu           EQU         $A26                      ; ID of hilited menu [word]
  653. SavedHandle       EQU         $A28                      ; saved bits under a menu [handle]
  654.  
  655. ;misc Menu stuff
  656.  
  657. MrMacHook         EQU         $A2C                      ; Mr. Macintosh hook [pointer]
  658.  
  659. ; Control manager
  660.  
  661. ; Control Definition Procedure Messages
  662.  
  663. drawCtlMsg        EQU         0                         ; draw message
  664. hitCtlMsg         EQU         1                         ; hit test message
  665. calcCtlMsg        EQU         2                         ; calc region message
  666. newCtlMsg         EQU         3                         ; init message
  667. dispCtlMsg        EQU         4                         ; dispose any private data message
  668. posCtlMsg         EQU         5                         ; adjust indicator position message
  669. thumbCtlMsg       EQU         6                         ; calculate rectangles for thumb dragging
  670. dragCtlMsg        EQU         7                         ; custom drag message
  671. trackCtlMsg       EQU         8                         ; track yourself message
  672. calcWholeCtlMsg   EQU         10                        ; calc whole region message
  673. calcThumbCtlMsg   EQU         11                        ; calc indicator region message
  674.  
  675. ;stage definition--packed 2 to a byte, 4 stages in a word
  676.  
  677. volBits           EQU         3                         ; number of beeps
  678. alBit             EQU         4                         ; alert bit (put up box this time?)
  679. okDismissal       EQU         8                         ; bit for OK/Cancel default in each stage
  680.  
  681. ; DialogList Data Structure Definitions
  682.  
  683. dlgMaxIndex       EQU         0                         ; maximum index (=items-1) stored here
  684.  
  685.  
  686. SaveProc          EQU         $A90                      ; address of Save failsafe procedure
  687. SaveSP            EQU         $A94                      ; Safe SP for restart or save
  688.  
  689. ; DITLMethod 
  690. overlayDITL         EQU 0
  691. appendDITLRight     EQU 1
  692. appendDITLBottom     EQU 2
  693.  
  694. ; Dialog Selectors
  695. AppendDITL            EQU    $402
  696. CountDITL            EQU    $403
  697. ShortenDITL            EQU    $404
  698.  
  699. ; Package Manager
  700.  
  701. FPState           EQU         $A4A                      ; floating point state [6 bytes]
  702. App2Packs         EQU         $BC8                      ; $BC8-$BE7 eight more package handles
  703.  
  704. ; Resource Manager
  705.  
  706. RMGRPerm          EQU         $BA4                      ; (byte) - permission byte for OpenResFile
  707.  
  708. ; Miscellaneous Constants
  709.  
  710. screenRadius      EQU         $00100010                 ; rounded corners for desk area
  711.  
  712. ; Miscellaneous Globals
  713.  
  714. IconBitmap        EQU         $A0E                      ; bitmap used for plotting things
  715. TaskLock          EQU         $A62                      ; re-entering SystemTask [byte]
  716. CloseOrnHook      EQU         $A88                      ; hook for closing desk ornaments
  717.  
  718. ;new MacApp stuff
  719.  
  720. MAErrProc         EQU         $BE8                      ; (long) MacApp error proc address
  721. MASuperTab        EQU         $BEC                      ; (long) handle to MacApp superclass table
  722.  
  723.  
  724. ;**************** NEW TOOL EQUATES ************
  725.  
  726. ; Font Manager
  727.  
  728. ; addition to FMgrOutRec (was unused)
  729.  
  730. fmOutCurStyle     EQU         17                        ;style algorthmically applied by QuickDraw
  731.  
  732. ;___________________________________________________________________________
  733. ;
  734. ; Window Manager
  735.  
  736. ; auxWinRec structure
  737.  
  738. awNext            EQU         $0                        ;next in chain [Handle]
  739. awOwner           EQU         $4                        ;owner ID [WindowPtr]
  740. awCTable          EQU         $8                        ;color table [CTabHandle]
  741. dialogCItem       EQU         $C                        ;handle to dialog manager structures [handle]
  742. awFlags           EQU         $10                       ;handle for Ernie [handle]
  743. awResrv           EQU         $14                       ;for expansion [longint]
  744. awRefCon          EQU         $18                       ;user constant [longint]
  745. auxWinSize        EQU         $1C                       ;size of record
  746. AuxWinHead        EQU         $0CD0                     ;[handle] Window Aux List head
  747.  
  748. ; Window Part Identifiers which correlate color table entries with window elements
  749.  
  750. wContentColor     EQU         0
  751. wFrameColor       EQU         1
  752. wTextColor        EQU         2
  753. wHiliteColor      EQU         3
  754. wTitleBarColor    EQU         4
  755.  
  756.  
  757. ;___________________________________________________________________________
  758. ;
  759. ; Control Manager
  760.  
  761. ; auxCtlRec structure
  762.  
  763. acNext            EQU         $0                        ;next in chain [AuxCtlHndl]
  764. acOwner           EQU         $4                        ;owner ID [ControlHandle]
  765. acCTable          EQU         $8                        ;color table [CCTabHandle]
  766. acFlags           EQU         $C                        ;misc flag byte [word]
  767. acReserved        EQU         $E                        ;for expansion [LONGINT]
  768. acRefCon          EQU         $12                       ;user constant [LONGINT]
  769. acSize            EQU         $16                       ;size of record
  770. AuxCtlHead        EQU         $0CD4                     ;[handle] Control Aux List head
  771.  
  772. ; Here are some equates for the colors of control parts
  773.  
  774. cFrameColor       EQU         0
  775. cBodyColor        EQU         1
  776. cTextColor        EQU         2
  777. cThumbColor       EQU         3
  778.  
  779. ;___________________________________________________________________________
  780. ;
  781. ; Menu Manager
  782.  
  783. MenuDisable       EQU         $0B54                     ; menuID and Item when disabled item selected
  784. MBDFHndl          EQU         $0B58                     ; handle to current menu bar defproc
  785. MBSaveLoc         EQU         $0B5C                     ; handle to the mbarproc private data
  786. MenuCInfo         EQU         $0D50                     ; hanel to menu color information table
  787. TopMenuItem       EQU         $A0A                      ; pixel value of top of scrollable menu
  788. AtMenuBottom      EQU         $A0C                      ; pixel value of bottom of scrollable menu
  789.  
  790. ;
  791. ; color menu table equates (mct = menu color table)
  792. ;
  793. mctID             EQU         $0
  794. mctItem           EQU         $2
  795. mctRGB1           EQU         $4
  796. mctRGB2           EQU         $A
  797. mctRGB3           EQU         $10
  798. mctRGB4           EQU         $16
  799. mctReserved       EQU         $1C
  800. mctEntrySize      EQU         $1E
  801.  
  802. ;
  803. ; miscellaneous equates for hierarchical menus
  804. ;
  805.  
  806. hMenuCmd          EQU         $1B                       ; itemCmd == $1B ==> hierarchical menu for this item
  807. scriptMenuCmd     EQU         28                        ; itemCmd == $1C ==> item to be displayed in script font
  808. hierMenu          EQU         -1                        ; InsertMenu(handle, hierMenu), when beforeID ==
  809. ; hierMenu, the handle is inserted in the
  810. ; hierarchical menuList
  811. mPopUpMsg         EQU         3                         ; menu defProc messages - place yourself
  812. ; miscellaneous hierarchical equates
  813. ;
  814. hMenuMark         EQU         200                       ; 'ยป' = menu character indicates item with hierarchical menu
  815.  
  816. ;
  817. ; miscellaneous menubar equates
  818. ;
  819. mbMenu1Loc        EQU         $A                        ; first menu is 10 pixels from left side of screen
  820. mctAllIds         EQU         -97                       ; search for all IDs for the given Item
  821.  
  822. ;
  823. ; color menu table search (and destroy) messages (mct = menu color table)
  824. ;
  825. mctAllItems       EQU         -98                       ; search for all Items for the given ID
  826. mctLastIDIndic    EQU         -99                       ; last entry in color table has this in ID field
  827.  
  828. ;___________________________________________________________________________
  829. ;
  830. ; Text Edit
  831.  
  832. ; Set/Replace style modes
  833.  
  834. fontBit           EQU         0                         ; set font
  835. faceBit           EQU         1                         ; set face
  836. sizeBit           EQU         2                         ; set size
  837. clrBit            EQU         3                         ; set color
  838. addSizeBit        EQU         4                         ; add size mode
  839. toglBit           EQU         5                         ;set faces in toggle mode
  840. ; TESetStyle/TEContinuousStyle modes
  841. doFont            EQU         $01
  842. doFace            EQU         2
  843. doSize            EQU         4
  844. doColor           EQU         8
  845. doAll             EQU         15                        ; set font/face/size/color
  846. addSize           EQU         16
  847. doToggle          EQU         32
  848. ; New internal dispatch table
  849. ; --offsets into TEDispatchRec
  850. EOLHook           EQU         0                         ; [ProcPtr] TEEOLHook
  851. DRAWHook          EQU         4                         ; [ProcPtr] TEWidthHook
  852. WIDTHHook         EQU         8                         ; [ProcPtr] TEDrawHook
  853. HITTESTHook       EQU         12                        ; [ProcPtr] TEHitTestHook
  854. nWIDTHHook        EQU            24                        ; [ProcPtr] nTEWidthHook    <6>
  855. TextWidthHook    EQU            28                        ; [ProcPtr] TETextWidthHook    <13>
  856. ; --selectors for TECustomHook
  857. IntEOLHook        EQU         0
  858. IntDrawHook       EQU         1
  859. IntWidthHook      EQU         2
  860. IntHitTestHook    EQU         3
  861. IntNWidthHook    EQU            6                        ; new version of WidthHook    <6>
  862. IntTextWidthHook    EQU        7                        ; new TextWidthHook            <13>
  863. teDispatchH       EQU         teRecBack                 ; new handle to internal dispatch record
  864. ; handle to style record
  865.  
  866. teStylesH         EQU         $4A                       ; replaces teFont/teFace
  867.  
  868. ; offsets into TEStyleRec
  869.  
  870. nRuns             EQU         $0                        ; [INTEGER] # of entries in styleStarts array
  871. nStyles           EQU         $2                        ; [INTEGER] # of distinct styles
  872. styleTab          EQU         $4                        ; [STHandle] handle to distinct styles
  873. lhTab             EQU         $8                        ; [LHHandle] handle to line heights
  874. teRefCon          EQU         $C                        ; [LONGINT] reserved
  875. nullStyle         EQU         $10                       ; [NullStHandle] to style set at null selection
  876. runs              EQU         $14                       ; array of styles
  877.  
  878. ; offsets into NullStRec
  879.  
  880. teReserved        EQU         0                         ; [LONGINT] reserved for future expansion
  881. nullScrap         EQU         4                         ; [StScrpHandle] handle to scrap style table.
  882. nullStSize        EQU         8
  883.  
  884. ; offsets into StyleRun array
  885.  
  886. startChar         EQU         0                         ; [INTEGER] offset into text to start of style
  887. styleIndex        EQU         2                         ; [INTEGER] style index
  888. stStartSize       EQU         4                         ; size of a styleStarts entry
  889.  
  890. ; offsets into STElement
  891.  
  892. stCount           EQU         0                         ; [INTEGER] # of times this style is used
  893. stHeight          EQU         2                         ; [INTEGER] line height
  894. stAscent          EQU         4                         ; [INTEGER] ascent
  895. stFont            EQU         6                         ; [INTEGER] font
  896. stFace            EQU         8                         ; [Style] face
  897. stSize            EQU         10                        ; [INTEGER] size
  898. stColor           EQU         12                        ; [RGBColor] color
  899. stRecSize         EQU         18                        ; size of a teStylesRec
  900.  
  901. ; offsets into TextStyle
  902.  
  903. tsFont            EQU         0                         ; [INTEGER] font
  904. tsFace            EQU         2                         ; [Style] face
  905. tsSize            EQU         4                         ; [INTEGER] size
  906. tsColor           EQU         6                         ; [RGBColor] color
  907. styleSize         EQU         12                        ; size of a StylRec
  908.  
  909. ; offsets into StScrpRec
  910.  
  911. scrpNStyles       EQU         0                         ; [INTEGER] # of styles in scrap
  912. scrpStyleTab      EQU         2                         ; [ScrpSTTable] start of scrap styles array
  913.  
  914. ; offsets into scrpSTElement
  915.  
  916. scrpStartChar     EQU         0                         ; [LONGINT] char where this style starts
  917. scrpHeight        EQU         4                         ; [INTEGER] line height
  918. scrpAscent        EQU         6                         ; [INTEGER] ascent
  919. scrpFont          EQU         8                         ; [INTEGER] font
  920. scrpFace          EQU         10                        ; [Style] face
  921. scrpSize          EQU         12                        ; [INTEGER] size
  922. scrpColor         EQU         14                        ; [RGBColor] color
  923. scrpRecSize       EQU         20                        ; size of a scrap record
  924.  
  925. teFAutoScr            EQU        0                        ; (00000001b)
  926. ; feature definitions for TEFeatureFlag
  927. teFTextBuffering     EQU     1                         ; (00000010b)
  928. teFOutlineHilite     EQU     2                         ; (00000100b)
  929. teFInlineInput          EQU        3                        ; (00001000b)
  930. teFUseTextServices    EQU        4                        ; (00010000b)
  931.  
  932. ; action for the new "bit (un)set" interface, TEFeatureFlag
  933. TEBitClear        EQU         0
  934. TEBitSet          EQU         1                         ; set the selector bit.
  935. TEBitTest         EQU         -1                        ; no change; just return the present value
  936.  
  937. ; constants for identifying the routine that called FindWord <5>
  938. teWordSelect EQU        4                        ; clickExpand to select word
  939. teWordDrag     EQU        8                        ; clickExpand to drag new word
  940. teFromFind     EQU        12                        ; FindLine called it ($0C)
  941. teFromRecal     EQU        16                        ; RecalLines called it ($10)
  942.  
  943. ; Text Edit Selectors:
  944.  
  945. teStylPaste      EQU         0
  946. teStylePaste      EQU         0
  947. teSetStyle        EQU         1
  948. teReplaceStyle    EQU         2
  949. teGetStyle        EQU         3
  950. getStylHandle    EQU         4
  951. getStyleHandle    EQU         4
  952. setStylHandle    EQU         5
  953. setStyleHandle    EQU         5
  954. getStylScrap     EQU         6
  955. getStyleScrap     EQU         6
  956. teStylInsert     EQU         7
  957. teStyleInsert     EQU         7
  958. teGetPoint        EQU         8
  959. teGetHeight       EQU         9
  960.  
  961. teContinuousStyle EQU         10
  962. setStylScrap     EQU         11
  963. setStyleScrap     EQU         11
  964. teCustomHook      EQU         12
  965. teNumStyles       EQU         13
  966. teFeatureFlag    EQU            14                        ; new for System 6.0.5/Script Systems 6.0.4 <1.5>
  967.  
  968.                   MACRO
  969.                   _TEContinuousStyle
  970.                   MOVE.W      #teContinuousStyle,-(SP)
  971.                   DC.W        $A83D                     ; _TEDispatch
  972.                   ENDM
  973.  
  974.                   MACRO
  975.                   _SetStylScrap
  976.                   MOVE.W      #setStylScrap,-(SP)
  977.                   DC.W        $A83D                     ; _TEDispatch
  978.                   ENDM
  979.  
  980.                   MACRO
  981.                   _SetStyleScrap
  982.                   MOVE.W      #setStyleScrap,-(SP)
  983.                   DC.W        $A83D                     ; _TEDispatch
  984.                   ENDM
  985.  
  986.                   MACRO
  987.                   _TECustomHook
  988.                   MOVE.W      #teCustomHook,-(SP)
  989.                   DC.W        $A83D                     ; _TEDispatch
  990.                   ENDM
  991.  
  992.                   MACRO
  993.                   _TENumStyles
  994.                   MOVE.W      #teNumStyles,-(SP)
  995.                   DC.W        $A83D                     ; _TEDispatch
  996.                   ENDM
  997.  
  998. ; new for System 6.0.5/Script Systems 6.0.4 <1.5>
  999.                   MACRO
  1000.                   _TEFeatureFlag
  1001.                   MOVE.W      #teFeatureFlag,-(SP)
  1002.                   DC.W        $A83D                     ; _TEDispatch
  1003.                   ENDM
  1004.  
  1005.                    MACRO
  1006.                   _TEStylPaste
  1007.                   MOVE.W      #teStylPaste,-(SP)
  1008.                   DC.W        $A83D                     ; _TEDispatch
  1009.                   ENDM
  1010.  
  1011.                  MACRO
  1012.                   _TEStylePaste
  1013.                   MOVE.W      #teStylePaste,-(SP)
  1014.                   DC.W        $A83D                     ; _TEDispatch
  1015.                   ENDM
  1016.  
  1017.                   MACRO
  1018.                   _TESetStyle
  1019.                   MOVE.W      #teSetStyle,-(SP)
  1020.                   DC.W        $A83D                     ; _TEDispatch
  1021.                   ENDM
  1022.  
  1023.                   MACRO
  1024.                   _TEReplaceStyle
  1025.                   MOVE.W      #teReplaceStyle,-(SP)
  1026.                   DC.W        $A83D                     ; _TEDispatch
  1027.                   ENDM
  1028.  
  1029.                   MACRO
  1030.                   _TEGetStyle
  1031.                   MOVE.W      #teGetStyle,-(SP)
  1032.                   DC.W        $A83D                     ; _TEDispatch
  1033.                   ENDM
  1034.  
  1035.                    MACRO
  1036.                   _GetStylHandle
  1037.                   MOVE.W      #getStylHandle,-(SP)
  1038.                   DC.W        $A83D                     ; _TEDispatch
  1039.                   ENDM
  1040.  
  1041.                  MACRO
  1042.                   _GetStyleHandle
  1043.                   MOVE.W      #getStyleHandle,-(SP)
  1044.                   DC.W        $A83D                     ; _TEDispatch
  1045.                   ENDM
  1046.  
  1047.                   MACRO
  1048.                   _SetStylHandle
  1049.                   MOVE.W      #setStylHandle,-(SP)
  1050.                   DC.W        $A83D                     ; _TEDispatch
  1051.                   ENDM
  1052.  
  1053.                   MACRO
  1054.                   _SetStyleHandle
  1055.                   MOVE.W      #setStyleHandle,-(SP)
  1056.                   DC.W        $A83D                     ; _TEDispatch
  1057.                   ENDM
  1058.  
  1059.                    MACRO
  1060.                   _GetStylScrap
  1061.                   MOVE.W      #getStylScrap,-(SP)
  1062.                   DC.W        $A83D                     ; _TEDispatch
  1063.                   ENDM
  1064.  
  1065.                  MACRO
  1066.                   _GetStyleScrap
  1067.                   MOVE.W      #getStyleScrap,-(SP)
  1068.                   DC.W        $A83D                     ; _TEDispatch
  1069.                   ENDM
  1070.  
  1071.                   MACRO
  1072.                   _TEStylInsert
  1073.                   MOVE.W      #teStylInsert,-(SP)
  1074.                   DC.W        $A83D                     ; _TEDispatch
  1075.                   ENDM
  1076.  
  1077.                   MACRO
  1078.                   _TEStyleInsert
  1079.                   MOVE.W      #teStyleInsert,-(SP)
  1080.                   DC.W        $A83D                     ; _TEDispatch
  1081.                   ENDM
  1082.  
  1083.                   MACRO
  1084.                   _TEGetPoint
  1085.                   MOVE.W      #teGetPoint,-(SP)
  1086.                   DC.W        $A83D                     ; _TEDispatch
  1087.                   ENDM
  1088.  
  1089.                   MACRO
  1090.                   _TEGetHeight
  1091.                   MOVE.W      #teGetHeight,-(SP)
  1092.                   DC.W        $A83D                     ; _TEDispatch
  1093.                   ENDM
  1094.                 
  1095.                 MACRO
  1096.                 _AppendDITL
  1097.                 MOVE.W        #AppendDITL,-(SP)
  1098.                 MOVE.L        SP,A0
  1099.                 _CommToolboxDispatch
  1100.                 ADDA.W        #$2,SP                    ; Pop the Selector back off
  1101.                 ENDM
  1102.                 
  1103.                 MACRO
  1104.                 _CountDITL
  1105.                 MOVE.W        #CountDITL,-(SP)
  1106.                 MOVE.L        SP,A0
  1107.                 _CommToolboxDispatch
  1108.                 ADDA.W        #$2,SP                    ; Pop the Selector back off
  1109.                 ENDM
  1110.                 
  1111.                 MACRO
  1112.                 _ShortenDITL
  1113.                 MOVE.W        #ShortenDITL,-(SP)
  1114.                 MOVE.L        SP,A0
  1115.                 _CommToolboxDispatch
  1116.                 ADDA.W        #$2,SP                    ; Pop the Selector back off
  1117.                 ENDM
  1118.  
  1119.                   ENDIF
  1120.  
  1121.     ENDIF    ; ...already included